home *** CD-ROM | disk | FTP | other *** search
- Path: lrz-muenchen.de!sun2!ua302aa
- From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
- Newsgroups: comp.lang.c
- Subject: Re: Question!@#!
- Date: 15 Jan 1996 13:50:40 GMT
- Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
- Distribution: world
- Message-ID: <4ddm3g$bvo@sparcserver.lrz-muenchen.de>
- References: <4dcejq$2un@venus.senecac.on.ca>
- NNTP-Posting-Host: sun2.lrz-muenchen.de
-
- cweselak@learn.senecac.on.ca (Christian Weselak) writes:
-
-
- >I have a very Simple question.. well, it should be simple for 'alot' of
- >you reading this newsgroup..
-
- >anyways.
-
- >I have created a program that asks THE users for his name, then writes it
- >to a file, the file is called name.txt..
-
- >Evertime this program is executed, the file name.txt get's overwritten.
-
- >How can i keep this file, name.txt, so that i can eventually have a
- >listing of all users who ran my program???
-
- Have a look at the documentation of fopen(), esp. the "a" mode
- for _appending_ to an existing file.
-
- Kurt
- --
- | Kurt Watzka Phone : +49-89-2180-6254
- | watzka@stat.uni-muenchen.de
- | ua302aa@sunmail.lrz-muenchen.de
-